package com.redoor.app.stake.basicdata.dao;

import com.redoor.app.stake.basicdata.model.BaseEquipmentInfo;
import com.redoor.app.stake.basicdata.model.controllerModel.BaseEquipmentInfoCriteria;
import com.redoor.app.stake.basicdata.model.serviceModel.BaseEquipmentInfoServiceBean;
import com.redoornetwork.framework.mybatis.mapper.Mapper;
import com.yotouch.app.stake.model.Equipment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BaseEquipmentInfoMapper extends Mapper<BaseEquipmentInfo> {

    public List<BaseEquipmentInfo> queryEquipments(BaseEquipmentInfoCriteria criteria);
    /**
     * 主列表查询
     * @Author zhangYiHang
     * @Date 2018/3/21 18:18
     * @Param
     */
    List<BaseEquipmentInfoServiceBean> qryEquipmentInfo(BaseEquipmentInfoCriteria criteria);
    /**
     * 列表展示总数据
     * @Author zhangYiHang
     * @Date 2018/3/22 9:36
     * @Param
     */
    Long qryEquipmentInfoTotal(BaseEquipmentInfoCriteria criteria);
    /**
     * 根据主键查询对象
     * @Author zhangYiHang
     * @Date 2018/3/26 19:05
     * @Param
     */
    BaseEquipmentInfoServiceBean qryEquipmentInfoByUuid(@Param("uuid") String id);
    /**
     * HSF接口调用
     * 根据厂家主键查询设备型号列表
     * paraId,equipDicType,measureModel,codeType,orgNo为冗余字段,无数据
     * @param map
     * @return
     */
    List<Equipment> qryEquipmentInfoToHSF(Map<String, Object> map);
}